Official aws-lite
plugin for S3
Maintained by: @architect
Install
npm i @aws-lite/s3
Optionally install types:
npm i -D @aws-lite/s3-types
Reference
Reference documentation with examples at aws-lite.org
Methods
AbortMultipartUpload
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Key
(string) [required]
UploadId
(string) [required]
- ID of the multipart upload
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
CompleteMultipartUpload
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Key
(string) [required]
UploadId
(string) [required]
- ID of the multipart upload
MultipartUpload
(object)
ChecksumCRC32
(string)
- Sets request header:
x-amz-checksum-crc32
ChecksumCRC32C
(string)
- Sets request header:
x-amz-checksum-crc32c
ChecksumSHA1
(string)
- Sets request header:
x-amz-checksum-sha1
ChecksumSHA256
(string)
- Sets request header:
x-amz-checksum-sha256
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
SSECustomerAlgorithm
(string)
- Sets request header:
x-amz-server-side-encryption-customer-algorithm
SSECustomerKey
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key
SSECustomerKeyMD5
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key-md5
CreateBucket
Canonical AWS API doc
Properties:
Bucket
(string) [required]
CreateBucketConfiguration
(object)
ACL
(string)
- Sets request header:
x-amz-acl
GrantFullControl
(string)
- Sets request header:
x-amz-grant-full-control
GrantRead
(string)
- Sets request header:
x-amz-grant-read
GrantReadACP
(string)
- Sets request header:
x-amz-grant-read-acp
GrantWrite
(string)
- Sets request header:
x-amz-grant-write
GrantWriteACP
(string)
- Sets request header:
x-amz-grant-write-acp
ObjectLockEnabledForBucket
(string)
- Sets request header:
x-amz-bucket-object-lock-enabled
ObjectOwnership
(string)
- Sets request header:
x-amz-object-ownership
CreateMultipartUpload
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Key
(string) [required]
ACL
(string)
- Sets request header:
x-amz-acl
CacheControl
(string)
- Sets request header:
cache-control
ContentDisposition
(string)
- Sets request header:
content-disposition
ContentEncoding
(string)
- Sets request header:
content-encoding
ContentLanguage
(string)
- Sets request header:
content-language
ContentType
(string)
- Sets request header:
content-type
Expires
(string)
- Sets request header:
expires
GrantFullControl
(string)
- Sets request header:
x-amz-grant-full-control
GrantRead
(string)
- Sets request header:
x-amz-grant-read
GrantReadACP
(string)
- Sets request header:
x-amz-grant-read-acp
GrantWriteACP
(string)
- Sets request header:
x-amz-grant-write-acp
ServerSideEncryption
(string)
- Sets request header:
x-amz-server-side-encryption
StorageClass
(string)
- Sets request header:
x-amz-storage-class
WebsiteRedirectLocation
(string)
- Sets request header:
x-amz-website-redirect-location
SSECustomerAlgorithm
(string)
- Sets request header:
x-amz-server-side-encryption-customer-algorithm
SSECustomerKeyMD5
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key-md5
SSEKMSKeyId
(string)
- Sets request header:
x-amz-server-side-encryption-aws-kms-key-id
SSEKMSEncryptionContext
(string)
- Sets request header:
x-amz-server-side-encryption-context
BucketKeyEnabled
(string)
- Sets request header:
x-amz-server-side-encryption-bucket-key-enabled
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
Tagging
(string)
- Sets request header:
x-amz-tagging
ObjectLockMode
(string)
- Sets request header:
x-amz-object-lock-mode
ObjectLockRetainUntilDate
(string)
- Sets request header:
x-amz-object-lock-retain-until-date
ObjectLockLegalHoldStatus
(string)
- Sets request header:
x-amz-object-lock-legal-hold
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
DeleteBucket
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteBucketAnalyticsConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Id
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteBucketCors
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteBucketEncryption
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteBucketIntelligentTieringConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Id
(string) [required]
DeleteBucketInventoryConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Id
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteBucketLifecycle
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteBucketMetricsConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Id
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteBucketOwnershipControls
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteBucketPolicy
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteBucketReplication
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteBucketTagging
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteBucketWebsite
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteObject
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Key
(string) [required]
VersionId
(string)
- Reference a specific version of the object
MFA
(string)
- Sets request header:
x-amz-mfa
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
BypassGovernanceRetention
(string)
- Sets request header:
x-amz-bypass-governance-retention
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
DeleteObjects
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Delete
(object) [required]
MFA
(string)
- Sets request header:
x-amz-mfa
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
BypassGovernanceRetention
(string)
- Sets request header:
x-amz-bypass-governance-retention
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ContentMD5
(string)
- Sets request header:
content-md5
GetBucketAccelerateConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
GetBucketAcl
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketAnalyticsConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Id
(string) [required]
- Id of the analytics configuration
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketCors
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketEncryption
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketIntelligentTieringConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Id
(string) [required]
- Id of the intelligent tiering configuration
GetBucketInventoryConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Id
(string) [required]
- Id of the inventory configuration
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketLifecycleConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketLocation
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketLogging
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketMetricsConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Id
(string) [required]
- Id of the metrics configuration
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketNotificationConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketOwnershipControls
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketPolicy
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketPolicyStatus
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketReplication
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketRequestPayment
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketTagging
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketVersioning
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetBucketWebsite
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
GetObject
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Key
(string) [required]
PartNumber
(number)
- Part number (between 1 - 10,000) of the object
VersionId
(string)
- Reference a specific version of the object
IfMatch
(string)
- Sets request header:
if-match
IfModifiedSince
(string)
- Sets request header:
if-modified-since
IfNoneMatch
(string)
- Sets request header:
if-none-match
IfUnmodifiedSince
(string)
- Sets request header:
if-unmodified-since
Range
(string)
- Sets request header:
range
SSECustomerAlgorithm
(string)
- Sets request header:
x-amz-server-side-encryption-customer-algorithm
SSECustomerKey
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key
SSECustomerKeyMD5
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key-md5
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
ChecksumMode
(string)
- Sets request header:
x-amz-checksum-mode
ResponseCacheControl
(string)
- Sets response header:
cache-control
ResponseContentDisposition
(string)
- Sets response header:
content-disposition
ResponseContentEncoding
(string)
- Sets response header:
content-encoding
ResponseContentLanguage
(string)
- Sets response header:
content-language
ResponseContentType
(string)
- Sets response header:
content-type
ResponseExpires
(string)
- Sets response header:
expires
rawResponsePayload
(boolean)
- Set to
true
to return payload as a buffer
streamResponsePayload
(boolean)
- Set to
true
to return payload as a Node.js stream
HeadBucket
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
HeadObject
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Key
(string) [required]
PartNumber
(number)
- Part number (between 1 - 10,000) of the object
VersionId
(string)
- Reference a specific version of the object
IfMatch
(string)
- Sets request header:
if-match
IfModifiedSince
(string)
- Sets request header:
if-modified-since
IfNoneMatch
(string)
- Sets request header:
if-none-match
IfUnmodifiedSince
(string)
- Sets request header:
if-unmodified-since
Range
(string)
- Sets request header:
range
SSECustomerAlgorithm
(string)
- Sets request header:
x-amz-server-side-encryption-customer-algorithm
SSECustomerKey
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key
SSECustomerKeyMD5
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key-md5
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
ChecksumMode
(string)
- Sets request header:
x-amz-checksum-mode
ListBucketAnalyticsConfigurations
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ContinuationToken
(string)
- Pagination cursor token (returned as
NextContinuationToken
paginate
(boolean)
- Enable automatic result pagination; use this instead of making your own individual pagination requests
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
ListBucketIntelligentTieringConfigurations
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ContinuationToken
(string)
- Pagination cursor token (returned as
NextContinuationToken
paginate
(boolean)
- Enable automatic result pagination; use this instead of making your own individual pagination requests
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
ListBucketInventoryConfigurations
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ContinuationToken
(string)
- Pagination cursor token (returned as
NextContinuationToken
paginate
(boolean)
- Enable automatic result pagination; use this instead of making your own individual pagination requests
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
ListBucketMetricsConfigurations
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ContinuationToken
(string)
- Pagination cursor token (returned as
NextContinuationToken
paginate
(boolean)
- Enable automatic result pagination; use this instead of making your own individual pagination requests
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
ListBuckets
Canonical AWS API doc
Properties:
ListMultipartUploads
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Delimiter
(string)
- Delimiter character used to group keys
EncodingType
(string)
- Object key encoding type (must be
url
)
KeyMarker
(string)
MaxUploads
(number)
- Maximum number of uploads between 1 and 1000 (inclusive) to return in the response
UploadIdMarker
(string)
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
paginate
(boolean)
- Enable automatic result pagination; use this instead of making your own individual pagination requests
ListObjectsV2
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ContinuationToken
(string)
- Pagination cursor token (returned as
NextContinuationToken
Delimiter
(string)
- Delimiter character used to group keys
EncodingType
(string)
- Object key encoding type (must be
url
)
FetchOwner
(string)
- Return owner field with results
MaxKeys
(number)
- Set the maximum number of keys returned per response
Prefix
(string)
- Limit response to keys that begin with the specified prefix
StartAfter
(string)
- Starts listing after any specified key in the bucket
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
OptionalObjectAttributes
(string)
- Sets request header:
x-amz-optional-object-attributes
paginate
(boolean)
- Enable automatic result pagination; use this instead of making your own individual pagination requests
PutBucketAccelerateConfiguration
Canonical AWS API doc
Properties:
AccelerateConfiguration
(object) [required]
- Object specifying acceleration configurations; can contain one of:
Status: 'Enabled'
, Status: 'Suspended'
- More details (AWS)
Bucket
(string) [required]
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketAnalyticsConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Id
(string) [required]
- Id of the analytics configuration
AnalyticsConfiguration
(object) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketCors
Canonical AWS API doc
Properties:
Bucket
(string) [required]
CORSConfiguration
(object) [required]
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketEncryption
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ServerSideEncryptionConfiguration
(object) [required]
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketIntelligentTieringConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Id
(string) [required]
- Id of the intelligent tiering configuration
IntelligentTieringConfiguration
(object) [required]
- Object defining the intelligent tiering configuration; required fields are:
Id
, Status
, Tierings
- More details (AWS)
PutBucketInventoryConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Id
(string) [required]
InventoryConfiguration
(object) [required]
- Object defining the inventory configuration; required config fields are:
Id
, IsEnabled
, IncludedObjectVersion
, Destination
, Schedule
- More details (AWS)
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketLifecycleConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
LifecycleConfiguration
(object) [required]
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
ContentMD5
(string)
- Sets request header:
content-md5
PutBucketMetricsConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Id
(string) [required]
MetricsConfiguration
(object) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketNotificationConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
NotificationConfiguration
(object) [required]
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketOwnershipControls
Canonical AWS API doc
Properties:
Bucket
(string) [required]
OwnershipControls
(object) [required]
ContentMD5
(string)
- Sets request header:
content-md5
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketPolicy
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Policy
(object) [required]
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ConfirmRemoveSelfBucketAccess
(string)
- Sets request header:
x-amz-confirm-remove-self-bucket-access
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketReplication
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ReplicationConfiguration
(object) [required]
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
Token
(string)
- Sets request header:
x-amz-bucket-object-lock-token
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketRequestPayment
Canonical AWS API doc
Properties:
Bucket
(string) [required]
RequestPaymentConfiguration
(object) [required]
- Object defining the payment configuration; must contain
Payer
, which can be one of: Requester
, BucketOwner
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketTagging
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Tagging
(object) [required]
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketVersioning
Canonical AWS API doc
Properties:
Bucket
(string) [required]
VersioningConfiguration
(object) [required]
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
MFA
(string)
- Sets request header:
x-amz-mfa
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutBucketWebsite
Canonical AWS API doc
Properties:
Bucket
(string) [required]
WebsiteConfiguration
(object) [required]
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutObject
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Key
(string) [required]
Body
(buffer, stream, string)
- String or buffer to be uploaded
File
(string)
- File path to be read and uploaded from the local filesystem
ApplyChecksum
(boolean)
- Sign payload; enabling this option may significantly increase memory and latency
MinChunkSize
(number)
- Minimum size (in bytes) to utilize signed, AWS-chunk-encoded uploads to S3
ACL
(string)
- Sets request header:
x-amz-acl
BucketKeyEnabled
(string)
- Sets request header:
x-amz-server-side-encryption-bucket-key-enabled
CacheControl
(string)
- Sets request header:
cache-control
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ChecksumCRC32
(string)
- Sets request header:
x-amz-checksum-crc32
ChecksumCRC32C
(string)
- Sets request header:
x-amz-checksum-crc32c
ChecksumSHA1
(string)
- Sets request header:
x-amz-checksum-sha1
ChecksumSHA256
(string)
- Sets request header:
x-amz-checksum-sha256
ContentDisposition
(string)
- Sets request header:
content-disposition
ContentEncoding
(string)
- Sets request header:
content-encoding
ContentLanguage
(string)
- Sets request header:
content-language
ContentLength
(string)
- Sets request header:
content-length
ContentMD5
(string)
- Sets request header:
content-md5
ContentType
(string)
- Sets request header:
content-type
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
Expires
(string)
- Sets request header:
expires
GrantFullControl
(string)
- Sets request header:
x-amz-grant-full-control
GrantRead
(string)
- Sets request header:
x-amz-grant-read
GrantReadACP
(string)
- Sets request header:
x-amz-grant-read-acp
GrantWriteACP
(string)
- Sets request header:
x-amz-grant-write-acp
ObjectLockLegalHoldStatus
(string)
- Sets request header:
x-amz-object-lock-legal-hold
ObjectLockMode
(string)
- Sets request header:
x-amz-object-lock-mode
ObjectLockRetainUntilDate
(string)
- Sets request header:
x-amz-object-lock-retain-until-date
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
ServerSideEncryption
(string)
- Sets request header:
x-amz-server-side-encryption
SSECustomerAlgorithm
(string)
- Sets request header:
x-amz-server-side-encryption-customer-algorithm
SSECustomerKey
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key
SSECustomerKeyMD5
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key-md5
SSEKMSEncryptionContext
(string)
- Sets request header:
x-amz-server-side-encryption-context
SSEKMSKeyId
(string)
- Sets request header:
x-amz-server-side-encryption-aws-kms-key-id
StorageClass
(string)
- Sets request header:
x-amz-storage-class
Tagging
(string)
- Sets request header:
x-amz-tagging
WebsiteRedirectLocation
(string)
- Sets request header:
x-amz-website-redirect-location
Metadata
(object)
- Key / value pairs of object metadata; must conform to S3 metadata guidelines
- More details (AWS)
PutObjectLegalHold
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Key
(string) [required]
VersionId
(string)
- Reference a specific version of the object
LegalHold
(object) [required]
- Object containing the field
Status
(string) which can be one of: ON
, OFF
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutObjectLockConfiguration
Canonical AWS API doc
Properties:
Bucket
(string) [required]
ObjectLockConfiguration
(object) [required]
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
Token
(string)
- Sets request header:
x-amz-bucket-object-lock-token
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutObjectRetention
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Key
(string) [required]
VersionId
(string)
- Reference a specific version of the object
Retention
(object) [required]
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
BypassGovernanceRetention
(string)
- Sets request header:
x-amz-bypass-governance-retention
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
PutObjectTagging
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Key
(string) [required]
VersionId
(string)
- Reference a specific version of the object
Tagging
(object) [required]
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
Upload
Properties:
Bucket
(string) [required]
Key
(string) [required]
Body
(buffer, stream, string)
- String or buffer to be uploaded
File
(string)
- File path to be read and uploaded from the local filesystem
ChunkSize
(number)
- Size of each chunk to upload in byes (also aliased to
partSize
); default is 10 MB
Concurrency
(number)
- Maximum concurrent uploads (also aliased to
queueSize
); default is 5, setting to 1 synchronously, sequentially uploads chunks; memory consumption is (ChunkSize
+ 1) * Concurrency
ACL
(string)
- Sets request header:
x-amz-acl
BucketKeyEnabled
(string)
- Sets request header:
x-amz-server-side-encryption-bucket-key-enabled
CacheControl
(string)
- Sets request header:
cache-control
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ChecksumCRC32
(string)
- Sets request header:
x-amz-checksum-crc32
ChecksumCRC32C
(string)
- Sets request header:
x-amz-checksum-crc32c
ChecksumSHA1
(string)
- Sets request header:
x-amz-checksum-sha1
ChecksumSHA256
(string)
- Sets request header:
x-amz-checksum-sha256
ContentDisposition
(string)
- Sets request header:
content-disposition
ContentEncoding
(string)
- Sets request header:
content-encoding
ContentLanguage
(string)
- Sets request header:
content-language
ContentType
(string)
- Sets request header:
content-type
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
Expires
(string)
- Sets request header:
expires
GrantFullControl
(string)
- Sets request header:
x-amz-grant-full-control
GrantRead
(string)
- Sets request header:
x-amz-grant-read
GrantReadACP
(string)
- Sets request header:
x-amz-grant-read-acp
GrantWriteACP
(string)
- Sets request header:
x-amz-grant-write-acp
ObjectLockLegalHoldStatus
(string)
- Sets request header:
x-amz-object-lock-legal-hold
ObjectLockMode
(string)
- Sets request header:
x-amz-object-lock-mode
ObjectLockRetainUntilDate
(string)
- Sets request header:
x-amz-object-lock-retain-until-date
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
ServerSideEncryption
(string)
- Sets request header:
x-amz-server-side-encryption
SSECustomerAlgorithm
(string)
- Sets request header:
x-amz-server-side-encryption-customer-algorithm
SSECustomerKey
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key
SSECustomerKeyMD5
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key-md5
SSEKMSEncryptionContext
(string)
- Sets request header:
x-amz-server-side-encryption-context
SSEKMSKeyId
(string)
- Sets request header:
x-amz-server-side-encryption-aws-kms-key-id
StorageClass
(string)
- Sets request header:
x-amz-storage-class
Tagging
(string)
- Sets request header:
x-amz-tagging
WebsiteRedirectLocation
(string)
- Sets request header:
x-amz-website-redirect-location
Metadata
(object)
- Key / value pairs of object metadata; must conform to S3 metadata guidelines
- More details (AWS)
UploadPart
Canonical AWS API doc
Properties:
Bucket
(string) [required]
Key
(string) [required]
PartNumber
(number)
- Part number (between 1 - 10,000) of the object
Body
(buffer, stream, string)
ContentLength
(string)
- Sets request header:
content-length
ContentMD5
(string)
- Sets request header:
content-md5
ChecksumAlgorithm
(string)
- Sets request header:
x-amz-sdk-checksum-algorithm
ChecksumCRC32
(string)
- Sets request header:
x-amz-checksum-crc32
ChecksumCRC32C
(string)
- Sets request header:
x-amz-checksum-crc32c
ChecksumSHA1
(string)
- Sets request header:
x-amz-checksum-sha1
ChecksumSHA256
(string)
- Sets request header:
x-amz-checksum-sha256
SSECustomerAlgorithm
(string)
- Sets request header:
x-amz-server-side-encryption-customer-algorithm
SSECustomerKey
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key
SSECustomerKeyMD5
(string)
- Sets request header:
x-amz-server-side-encryption-customer-key-md5
RequestPayer
(string)
- Sets request header:
x-amz-request-payer
ExpectedBucketOwner
(string)
- Sets request header:
x-amz-expected-bucket-owner
Methods yet to be implemented
Please help out by opening a PR!
Learn more